project(vvxpm-libdbus)
#noinst_LTLIBRARIES = 			\
#	libxfpmdbus.la
#
set(libxfpmdbus_SOURCES
        xfpm-dbus.c
        xfpm-dbus.h
        xfpm-dbus-monitor.c
        xfpm-dbus-monitor.h
        xfpm-dbus-marshal.c
        xfpm-dbus-marshal.h
)

add_library(${PROJECT_NAME}
        STATIC
        ${libxfpmdbus_SOURCES}
)

set(deps)
if (${IS_ALONE_COMPILE})
    list(APPEND deps PkgConfig::GLIB)
    list(APPEND deps PkgConfig::XFCE4_UTIL)
else()
    list(APPEND deps glib-shared)
    list(APPEND deps libxfce4util-shared)
endif()

target_link_libraries(${PROJECT_NAME}
        PUBLIC
        ${deps}
    	PkgConfig::DBUS_GLIB
)
target_include_directories(${PROJECT_NAME}
        PUBLIC
        .
)


#
#libxfpmdbus_la_CFLAGS =			\
#	$(GLIB_CFLAGS)			\
#	$(LIBXFCE4UTIL_CFLAGS)		\
#	$(DBUS_GLIB_CFLAGS)
#
#libxfpmdbus_la_LIBADD =			\
#	$(GLIB_LIBS)			\
#	$(DBUS_GLIB_LIBS)		\
#	$(DBUS_LIBS)
#
#if MAINTAINER_MODE
#
#BUILT_SOURCES =				\
#	xfpm-dbus-marshal.c		\
#	xfpm-dbus-marshal.h
#
#xfpm-dbus-marshal.c: xfpm-dbus-marshal.list
#	echo "#include \"xfpm-dbus-marshal.h\"" > $@ && \
#	glib-genmarshal $< --prefix=_xfpm_dbus_marshal --body >> $@
#
#xfpm-dbus-marshal.h: xfpm-dbus-marshal.list
#	glib-genmarshal $< --prefix=_xfpm_dbus_marshal --header > $@
#
#endif
#
#EXTRA_DIST =				\
#	xfpm-dbus-marshal.list
#
#DISTCLEANFILES =			\
#	$(BUILT_SOURCES)
